const Mock = require('mockjs')

const breedData = [
    {
        breedCowNumber: "231231",
        BreedDate: "2020-11-11",
    },
    {
        breedCowNumber: "231231",
        BreedDate: "2020-12-11",
    },
]
const Calving = [
    {
        calfNumber: "231231",
        calfGender: "母牛",

        calvingDate: "2017-12-12",
        calvingSituation: "顺产",

        calvingInterval: "200",
        justDays: "",
    },
    {
        calfNumber: "231231",
        calfGender: "母牛",

        calvingDate: "2018-12-12",
        calvingSituation: "顺产",

        calvingInterval: "200",
        justDays: "",
    },
]
module.exports = [
    //基础数据
    {
        url: '/info/GetBaseInfo',
        type: 'get',
        response: config => {

            return {
                code: 200,
                data: {
                    cowNumber: "23123233",
                    ranch: "徐水圣美",
                    varieties: "荷斯坦牛",

                    birthDate: "2020-12-12",
                    fatherNumber: "43212",
                    motherNumber: "353423",

                    childTime: "2",
                    childBirth: "顺产",
                }
            }
        }
    },
    //配种记录
    {
        url: '/info/BreedRecord',
        type: 'get',
        response: config => {

            return {
                code: 200,
                data: breedData
            }
        }
    },
    //产犊记录
    {
        url: '/info/CalvingRecord',
        type: 'get',
        response: config => {

            return {
                code: 200,
                data: Calving
            }
        }
    },
]